//
//  JLCFNavigationController.m
//  QTZ
//
//  Created by ski on 2017/7/7.
//  Copyright © 2017年 ski. All rights reserved.
//

#import "JLCFNavigationController.h"

@interface JLCFNavigationController ()<UIGestureRecognizerDelegate>

@end

@implementation JLCFNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBarHidden = YES;
    // Do any additional setup after loading the view.
    if ([self respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.interactivePopGestureRecognizer.delegate = self;
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
    //判断如果是当前VC是rootVC，直接不响应手势
    if (self.viewControllers.count == 1 ) {
        return NO;
    }
    return YES;
    
} 

@end
